package com.example.demo.command;

/**
 * 打开电视命令
 *
 * @author Liu Huijun
 * @date 2023-02-08
 */
public class TvOnCommand implements Command{

    private Television television;

    public TvOnCommand(Television television) {
        this.television = television;
    }

    @Override
    public void execute() {
        television.on();
    }
}
